package com.greet.service;

import com.greet.entity.AddressBook;

import java.util.List;

public interface AddressBookService {
    List<AddressBook> getByUserId(Long userId);

    AddressBook getById(Long id);

    AddressBook getByIsDefault(Long currentId, Integer isDefault);

    void setById(AddressBook addressBook);

    void setDefault(Long UserId, Long id);

    void addAddress(AddressBook addressBook);

    void deleteById(Long id);
}
